import { axios } from '@/utils/request'

/**
 * 查询微信H5支付配置表
 *
 * @author 郑雄伟
 * @date 2023-12-28 19:46:35
 */
export function appPayWxWebConfigPage (parameter) {
  return axios({
    url: '/appPayWxWebConfig/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 微信H5支付配置表列表
 *
 * @author 郑雄伟
 * @date 2023-12-28 19:46:35
 */
export function appPayWxWebConfigList (parameter) {
  return axios({
    url: '/appPayWxWebConfig/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加微信H5支付配置表
 *
 * @author 郑雄伟
 * @date 2023-12-28 19:46:35
 */
export function appPayWxWebConfigAdd (parameter) {
  return axios({
    url: '/appPayWxWebConfig/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑微信H5支付配置表
 *
 * @author 郑雄伟
 * @date 2023-12-28 19:46:35
 */
export function appPayWxWebConfigEdit (parameter) {
  return axios({
    url: '/appPayWxWebConfig/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除微信H5支付配置表
 *
 * @author 郑雄伟
 * @date 2023-12-28 19:46:35
 */
export function appPayWxWebConfigDelete (parameter) {
  return axios({
    url: '/appPayWxWebConfig/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出微信H5支付配置表
 *
 * @author 郑雄伟
 * @date 2023-12-28 19:46:35
 */
export function appPayWxWebConfigExport (parameter) {
  return axios({
    url: '/appPayWxWebConfig/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
